const mongoose = require("mongoose");

const schema = new mongoose.Schema({
  articleName: {
    type: String,
  },
  categoryNames: [{ type: mongoose.SchemaTypes.ObjectId, ref: "Category" }],
  articleImg: {
    type: String,
  },
  content: {
    type: String,
  },
  editorValue: {
    type: String,
  },
});

module.exports = mongoose.model("Article", schema);
